﻿using System;
using System.Runtime.Serialization;

namespace RIFF.Chunk
{
    [Serializable]
    internal class CreateChunkException : ChunkException
    {
        public CreateChunkException()
        {
        }

        public CreateChunkException(string? message) : base(message)
        {
        }

        public CreateChunkException(string? message, Exception? innerException) : base(message, innerException)
        {
        }

        public CreateChunkException(Type type, Exception? innerException) : base($"创建 {type.FullName} 失败", innerException)
        {
        }

        protected CreateChunkException(SerializationInfo info, StreamingContext context) : base(info, context)
        {
        }
    }
}